<div class="febs-container" id="task-edit">
    <div class="febs-body  febs-open-body   layui-fluid" lay-title="查看任务">
        <form action="" lay-filter="task-edit-form">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form-item">
                        <div class="layui-row">
                            <div class="layui-col-xs6">
                                <label class="layui-form-label  ">项目编号:</label>
                                <a class="layui-input-block"
                                   style="display:block;text-align:left;color:#1E9FFF;margin-top:  10px;"
                                   id="projectlink" th:text="${task.projectCode}">
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-row">
                            <div class="layui-col-md6">
                                <label class="layui-form-label">任务编号:</label>
                                <div class="layui-input-block-html" th:text="${task.taskCode}"></div>
                            </div>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-row">
                            <div class="layui-col-md6">
                                <label class="layui-form-label">所需模型:</label>
                                <div class="layui-input-block-html" th:text="${task.modelnames}">
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-row">
                            <div class="layui-col-xs6">
                                <label class="layui-form-label">任务类型:</label>
                                <div class="layui-input-block-html" th:text="${task.taskTypeName}">
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-row">
                            <div class="layui-col-xs6">
                                <label class="layui-form-label">所需资源:</label>
                                <div class=" layui-input-block-html" th:text="${task.rsName}">
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-row">
                            <div class="layui-col-xs6">
                                <label class="layui-form-label ">试验工时:</label>
                                    <div class="  layui-input-block-html"
                                         th:text="${#strings.isEmpty(task.testDay) or (task.testDay eq null) }? ' 天':${task.testDay} +' 天' ">
                                    </div>
                            </div>
                        </div>
                    </div>

                    <div class="layui-form-item" id="paiqi" style="display: none">
                        <label class="layui-form-label "    >试验内容:</label>
                        <div class="febs-table-full"  style="padding-left: 50px;">
                            <table lay-filter="tasktestTable" id="tasktestTable"
                                   name="tasktestTable" lay-data="{id: 'tasktestTable'}"></table>
                        </div>
                    </div>

                    <div class="layui-form-item" id="changshui" style="display: none">
                        <label class="layui-form-label "    >试验内容:</label>
                        <div class="febs-table-full"   style="padding-left: 50px;">
                            <table lay-filter="tasktestTablecs" id="tasktestTablecs"
                                   name="tasktestTablecs" lay-data="{id: 'tasktestTablecs'}"></table>
                        </div>
                    </div>

                    <div class="layui-form-item" id="banliu" style="display: none">
                        <label class="layui-form-label ">试验内容:</label>
                        <div class="febs-table-full"    style="padding-left: 50px;">
                            <table lay-filter="tasktestTablebl1" id="tasktestTablebl1"
                                   name="tasktestTablebl1" lay-data="{id: 'tasktestTablebl1'}"></table>
                            <table lay-filter="tasktestTablebl2" id="tasktestTablebl2"
                                   name="tasktestTablebl2" lay-data="{id: 'tasktestTablebl2'}"></table>
                        </div>
                    </div>

                    <div class="layui-form-item" id="liuxiang" style="display: none">
                        <label class="layui-form-label "   >试验内容:</label>
                        <div class="febs-table-full"   style="padding-left: 50px;">
                            <table lay-filter="tasktestTablelx" id="tasktestTablelx"
                                   name="tasktestTablelx" lay-data="{id: 'tasktestTablellx'}"></table>
                        </div>
                    </div>


                    <div class="layui-form-item">
                        <div class="layui-row">
                            <div class="layui-col-xs6">
                                <label class="layui-form-label "  style="padding-left: 40px;">是否重点任务:</label>
                                <div class="  layui-input-block-html">
                                                    <span style="padding-left: 0px"
                                                          th:if="${task.iskeyTask eq '1'}">是
                                                    </span>

                                    <span style="padding-left: 0px" th:unless="${task.iskeyTask eq '1'}">否</span>
                                </div>
                            </div>
                            <div class="layui-col-xs6">
                                <label class="layui-form-label "  style="text-align: left">说    明:</label>
                                <div class="  layui-input-block-html"
                                     th:text="${task.keyExplain}"></div>
                            </div>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-row">
                            <div class="layui-col-xs6">
                                <label class="layui-form-label "   style="padding-left: 50px;">计划开始日期：</label>
                                <div
                                        th:text="${#dates.format(task.planStartdate,'yyyy-MM-dd')==null?'':#dates.format(task.planStartdate,'yyyy-MM-dd')}
                            +' '+${#dates.format(task.planStarttime,'HH:mm')==null?'':#dates.format(task.planStarttime,'HH:mm')}"
                                        class="  layui-input-block-html"></div>
                            </div>

                            <div class="layui-col-xs6">
                                <div class="layui-col-xs6">
                                    <label class="layui-form-label "  style="text-align: left">计划结束日期:</label>
                                    <div class="layui-input-block-html"
                                         th:text="${#dates.format(task.planEnddate,'yyyy-MM-dd')==null?'':#dates.format(task.planEnddate,'yyyy-MM-dd')}+' '
                                 +${#dates.format(task.planEndtime,'HH:mm')==null?'':#dates.format(task.planEndtime,'HH:mm')}">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="layui-form-item ">
                        <div class="layui-row">
                            <div class="layui-col-xs6">
                                <label class="layui-form-label "  style="padding-left: 50px;">实际开始时间：</label>
                                <div class="layui-input-block-html"
                                     th:text="${#dates.format(task.actuallyStartdate,'yyyy-MM-dd HH:mm')}">
                                </div>
                            </div>
                            <div class="layui-col-xs6">
                                <label class="layui-form-label "  style="text-align: left;">实际结束时间：</label>
                                <div class="layui-input-block-html"
                                     th:text="${#dates.format(task.actuallyEnddate,'yyyy-MM-dd HH:mm')}">
                                </div>
                            </div>
                        </div>
                    </div>


                    <div class="layui-form-item">
                        <div class="layui-row"   style="padding-left: 50px;">
                            <div style="height: 120px ;width: 98%" id="fileUploadBtn">
                            </div>
                        </div>
                    </div>

                    <div id="auditRecord">
                        <label style="font-size: medium;font-weight: bold;padding-left: 50px;"     >操作记录:</label>
                        <div class="febs-table-full"   style="padding-left: 50px;">
                            <table lay-filter="workflowRecordTable" id="workflowRecordTable"
                                   lay-data="{id: 'workflowRecordTable'}"></table>
                        </div>
                    </div>

                    <input name="taskCode"  style="display: none">
                    <div class="layui-form-item" style="text-align: center">
                        <button type="reset" class="layui-btn" style="margin-left:20px;"
                                lay-filter="sypqProject-edit-form-reset" id="reset">返回
                        </button>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>


<script data-th-inline="javascript">
    var taskData = [[${task}]];
    var typeData = [[${type}]];
    var resourceListData = [[${resourceList}]];
    var projectListData = [[${projectList}]];

</script>
<script th:src="@{/febs/js/sypq/task/taskDetail.js(v=1)}"></script>

<style type="text/css">
    .layui-form-label {
        width: 100px !important;
    }

    .layui-input-block {
        margin-left: 130px !important;
    }

    .layui-table-view {
        .layui-table-tool {
            min-height: 0px !important;
            line-height: 0px !important;
            padding-top: 0px !important;
            padding-bottom: 0px !important;
        }
    }

    .layui-table-page {
        display: none !important;
    }

    .layui-table-cell {
        font-size: 12px;
    }
    .layui-input-block-html{
        line-height: 38px;
        box-sizing: border-box;
    }

</style>